import bb.cascades 1.2
TabbedPane {
    showTabsOnActionBar: true
    Tab {
        id: one
        title: qsTr("Map")
        imageSource: "asset:///images/icons/bb10/ic_map.png"
        ActionBar.placement: ActionBarPlacement.OnBar
        MapPage {
            objectName: "mapPage"
        }
    }
    Tab {
        id: two
        title: qsTr("Helden")
        imageSource: "asset:///images/icons/bb10/ic_contact.png"
        ActionBar.placement: ActionBarPlacement.OnBar
        HeldenPage {
            objectName: "heldenPage"
        }
    }
    Menu.definition: MenuDefinition {
        settingsAction: SettingsActionItem {
            onTriggered: {
                var sheet = settings.createObject();
                sheet.open();
            }
        }
        helpAction: HelpActionItem {
            onTriggered: {
                var sheet = help.createObject();
                sheet.open();
            }
        }
    }
    attachedObjects: [
        ComponentDefinition {
            id: help
            HelpSheet {}
        },
        ComponentDefinition {
            id: settings
            SettingsSheet {}
        }
    ]
}
